package com.cloudeasy.provider.model.service;

import com.cloudeasy.provider.model.service.hystrix.UaclUserTokenFeignApiHystrix;
import com.cloudeasy.security.feign.OAuth2FeignAutoConfiguration;
import com.cloudeasy.wrapper.Wrapper;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Create By 郭金宝 on 2019/2/13.<br>
 */
@FeignClient(value = "cloudeasy-provider-uacl", configuration = OAuth2FeignAutoConfiguration.class, fallback = UaclUserTokenFeignApiHystrix.class)
public interface UaclUserTokenFeignApi {

    /**
     * 超时token更新为离线.
     *
     * @return the wrapper
     */
    @PostMapping(value = "/api/uacl/token/updateTokenOffLine")
    Wrapper<Integer> updateTokenOffLine();
}
